app chooser button: Make final
authorMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 00:30:35 +0000 (20:30 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 00:30:35 +0000 (20:30 -0400)
gtk/gtkappchooserbutton.c
gtk/gtkappchooserbutton.h

index f8721a07205bf2785161a66cbb30c051946049b5..61df5844b5ac59832639820d28c3056ba8aeceb1 100644 (file)
@@ -104,6 +104,20 @@ static void real_insert_separator   (GtkAppChooserButton *self,
 static guint signals[NUM_SIGNALS] = { 0, };
 static GParamSpec *properties[NUM_PROPERTIES];
 
+typedef struct _GtkAppChooserButtonClass   GtkAppChooserButtonClass;
+
+struct _GtkAppChooserButton {
+  GtkWidget parent_instance;
+};
+
+struct _GtkAppChooserButtonClass {
+  GtkWidgetClass parent_class;
+
+  void (* changed)               (GtkAppChooserButton *self);
+  void (* custom_item_activated) (GtkAppChooserButton *self,
+                                  const gchar *item_name);
+};
+
 typedef struct
 {
   GtkWidget *combobox;
index 98e965a32dae2b1de3b4ad4d4d4e63f9017f9cbc..c57456aeef92ebc6b62983ea9315c71744a7f130 100644 (file)
@@ -33,39 +33,9 @@ G_BEGIN_DECLS
 
 #define GTK_TYPE_APP_CHOOSER_BUTTON            (gtk_app_chooser_button_get_type ())
 #define GTK_APP_CHOOSER_BUTTON(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_APP_CHOOSER_BUTTON, GtkAppChooserButton))
-#define GTK_APP_CHOOSER_BUTTON_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_APP_CHOOSER_BUTTON, GtkAppChooserButtonClass))
 #define GTK_IS_APP_CHOOSER_BUTTON(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_APP_CHOOSER_BUTTON))
-#define GTK_IS_APP_CHOOSER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_APP_CHOOSER_BUTTON))
-#define GTK_APP_CHOOSER_BUTTON_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_APP_CHOOSER_BUTTON, GtkAppChooserButtonClass))
 
 typedef struct _GtkAppChooserButton        GtkAppChooserButton;
-typedef struct _GtkAppChooserButtonClass   GtkAppChooserButtonClass;
-
-struct _GtkAppChooserButton {
-  GtkWidget parent_instance;
-};
-
-/**
- * GtkAppChooserButtonClass:
- * @parent_class: The parent class.
- * @custom_item_activated: Signal emitted when a custom item,
- *    previously added with gtk_app_chooser_button_append_custom_item(),
- *    is activated from the dropdown menu.
- */
-struct _GtkAppChooserButtonClass {
-  GtkWidgetClass parent_class;
-
-  /*< public >*/
-
-  void (* changed)               (GtkAppChooserButton *self);
-  void (* custom_item_activated) (GtkAppChooserButton *self,
-                                  const gchar *item_name);
-
-  /*< private >*/
-
-  /* padding for future class expansion */
-  gpointer padding[16];
-};
 
 GDK_AVAILABLE_IN_ALL
 GType       gtk_app_chooser_button_get_type           (void) G_GNUC_CONST;